package cn.matezk.cloud.beans;

import cn.hutool.core.date.DateUtil;
import lombok.Data;

import java.util.Date;

@Data
public class PaymentNotify {
    private String appid;
    private String mchId;
    private String resultCode;
    private String errCode;
    private String openid;
    private String tradeType;
    private String bankType;
    private Integer totalFee;
    private String outTradeNo;
    private String timeEnd;

    public Date getSuccessTime() {
        return DateUtil.parse(timeEnd);
    }
}
